/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package estg.dae.projecto.bank.data;

import estg.dae.projecto.bank.OperationType;
import estg.dae.projecto.bank.model.ElectronicTransfer;
import java.util.Collection;
import java.util.Date;
import javax.ejb.Local;

/**
 *
 * @author Marco
 */
@Local
public interface ElectronicTransferDaoLocal {
    void delete(ElectronicTransfer electronicTransfer);
    void save(ElectronicTransfer electronicTransfer);
    ElectronicTransfer get(OperationType opType, String originNib, String destinNib, Date date, double value);
    boolean exists(OperationType opType, String originNib, String destinNib, Date date, double value);
    Collection<ElectronicTransfer> getAll();
}
